package org.builder.web.validator;

import java.util.ArrayList;
import java.util.HashMap;

import org.builder.bean.Property;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
import org.springframework.test.AbstractSpringContextTests;

public class DefaultTaskValidatorTest extends AbstractDependencyInjectionSpringContextTests {

	protected TaskValidator taskValidator;
	
	public DefaultTaskValidatorTest() {
		setPopulateProtectedVariables(true);
	}

	@Override
	protected String[] getConfigLocations() {
		return new String[]{"classpath:applicationContext.xml"};
	}


	public void testCheck(){
		Property property = new Property();
		property.setName("ciao");
		boolean check =taskValidator.check(property, new HashMap());
		System.out.println(check);
		
	}
	
	
}
